 %order = [CupSize, Ncoffee, Ntea, Nsugar, Nespresso, IsUrgent]
    %order       1         2       3       4     5          6     
    %N-drinks is from 0 - N
    %type is either (coffee,tea) or (espresso) the other being 0

%Generate a random order
order = Lab3RandOrder;

%sort the order into two cells Urgent and Standard
%based on isUrgent value.
[U S] = prioritize(order)

if ~(size(U))
    fprintf('No urgent orders\n');
    
    %just process the standard orders.
    
else %There are urgent orders
    fprintf('Urgent orders found');
    
    if ~(size(S)) % are there standard ones?
        
        %process U and then S
        
    else
        
        %process just U
    
    end
    
end
    